package com.ruoyi.base.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同管理业务对象 base_bs_contract
 *
 * @author zyb
 * @date 2024-03-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsContractBo extends BaseEntity {

    /**
     * 合同id
     */
    @NotNull(message = "合同id不能为空", groups = { EditGroup.class })
    private Long contractId;

    /**
     * 所属项目id
     */
    @NotNull(message = "所属项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 合同名称
     */
    @NotBlank(message = "合同名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractName;

    /**
     * 合同状态
     */
    @NotBlank(message = "合同状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractStatus;

    /**
     * 施工单位
     */
    @NotBlank(message = "施工单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sgGroup;

    /**
     * 监理单位
     */
    @NotBlank(message = "监理单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jlGroup;

    /**
     * 检测单位
     */
    @NotBlank(message = "检测单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jcGroup;

    /**
     * 合同号
     */
    @NotBlank(message = "合同号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractNum;


}
